﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using Server.Model;
using System.Runtime.Serialization;

namespace Server.Service.Model
{
    [DataContract]
    public class WCFCar
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string RegistrationNo { get; set; }
        [DataMember]
        public WCFUser User { get; set; }
        [DataMember]
        public WCFBattery Battery { get; set; }
        [DataMember]
        public WCFCarModel CarModel { get; set; }
        [DataMember]
        public List<WCFReservation> Reservations { get; set; }

        public WCFCar(Car car)
        {
            this.Id = car.Id;
            this.RegistrationNo = car.RegistrationNo;

            Reservations = new List<WCFReservation>();
        }
    }
}
